package Test01_04;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 14229 on 2020/2/21.
 */
public class Dept {
    private String name;
    private String id;
    private List<Emp> list = new ArrayList<>();

    @Override
    public String toString() {
        return "Dept{" +
                "name='" + name + '\'' +
                ", id='" + id + '\'' +
                ", list=" + list +
                '}';
    }

    public List<Emp> getList() {
        return list;
    }

    public void setList(List<Emp> list) {
        this.list = list;
    }

    public Dept(String name, String id, List<Emp> list) {
        this.name = name;
        this.id = id;
        this.list = list;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Dept(String name, String id) {

        this.name = name;
        this.id = id;
    }

    public Dept() {

    }
}
